package com.jifen.user.vo;

import com.jifen.config.Global;
import org.apache.commons.lang3.StringUtils;

public class UserVo {

    private Integer id;

    private String mobile;

    private String head;

    private String nickname;

    private Double jifen;

    private String inviterMobile;

    private int isMch;

    private int isAgent;

    private int isAdmin;

    private Integer sid;

    private Double deductMoney;

    private int recommendMchFlag;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getHead() {
        if(StringUtils.isNotBlank(head)){
            return Global.getConfig("cdnUrl") + head;
        }
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Double getJifen() {
        return jifen;
    }

    public void setJifen(Double jifen) {
        this.jifen = jifen;
    }

    public String getInviterMobile() {
        return inviterMobile;
    }

    public void setInviterMobile(String inviterMobile) {
        this.inviterMobile = inviterMobile;
    }

    public int getIsMch() {
        return isMch;
    }

    public void setIsMch(int isMch) {
        this.isMch = isMch;
    }

    public int getIsAgent() {
        return isAgent;
    }

    public void setIsAgent(int isAgent) {
        this.isAgent = isAgent;
    }

    public int getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(int isAdmin) {
        this.isAdmin = isAdmin;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Double getDeductMoney() {
        return deductMoney;
    }

    public void setDeductMoney(Double deductMoney) {
        this.deductMoney = deductMoney;
    }

    public int getRecommendMchFlag() {
        return recommendMchFlag;
    }

    public void setRecommendMchFlag(int recommendMchFlag) {
        this.recommendMchFlag = recommendMchFlag;
    }
}
